package com.mc.music_web.services;

import com.github.pagehelper.PageInfo;
import com.mc.music_web.entity.Singer;

import java.util.List;
import java.util.Map;

public interface SingerService {

    //删除
    int delteSinger(Integer singerId);
    //添加
    int insert(Singer singer);
    //查询所有
    List<Singer> selectAllListSinger();
    //修改
    int updateByPrimaryKeySinger(Singer singer);
    //单查询
    Singer selectByPrimaryKeySinger(Integer singerId);

    //模糊查询
    List<Singer> selectByChooseSinger(String keyword);


    /**
     * 分页查询
     * @param pageNum
     * @return
     */
    PageInfo selectSingerLimit(int pageNum);
}
